home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / Factoring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  704 b   |  30 lines  |  [TEXT/KAHL]

  1. /* Factoring.h */
  2.  
  3. #ifndef Included_Factoring_h
  4. #define Included_Factoring_h
  5.  
  6. /* Factoring module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12.  
  13. struct FactorRec;
  14. typedef struct FactorRec FactorRec;
  15.  
  16. /* initialize internal data structures used by factorer */
  17. MyBoolean                            InitializeFactoring(void);
  18.  
  19. /* dispose of factor stuff */
  20. void                                    ShutdownFactoring(void);
  21.  
  22. /* dispose factor list */
  23. void                                    DisposeFactorList(FactorRec* List);
  24.  
  25. /* find the common factors of two numbers.  the product of the common factors */
  26. /* is returned (i.e. greatest common factor). */
  27. unsigned long                    FindCommonFactors(unsigned long Left, unsigned long Right);
  28.  
  29. #endif
  30.